#include "gift.h"
#include "ui_gift.h"

Gift::Gift(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Gift)
{
    ui->setupUi(this);
    QPixmap *pix = new QPixmap(":/images/QRcode.png");
    QSize sz = ui->qun->size();
    ui->qun->setPixmap(pix->scaled(sz));
    //设置登录界面的背景图
    this->setFixedSize(300,320);//固定窗口大小
    QPalette pal =this->palette();
    QImage ImgAllbackground(":/images/background1.jpg");
    QImage fitimpic = ImgAllbackground.scaled(this->width(),this->height(),Qt::IgnoreAspectRatio);
    pal.setBrush(QPalette::Window,QBrush(fitimpic));
    setPalette(pal);
}

Gift::~Gift()
{
    delete ui;
}
